<h1>
    <?php echo __('admin_news_list');?>
</h1>
<?php if($allnews):?>
<table style="width: 100%;">
    <tr>
        <th scope="col"><?php echo __('admin_aboutus_title'); ?></th>
        <th scope="col" ><?php echo __('admin_aboutus_meta_title'); ?></th>
        <th scope="col"><?php echo __('admin_aboutus_meta_description'); ?></th>
        <th scope="col"><?php echo __('admin_aboutus_meta_keyword'); ?></th>
        <th scope="col" width="40%"><?php echo __('admin_aboutus_description'); ?></th>
        <th scope="col" class="last"><?php echo __('actions'); ?></th>
    </tr>
    <?php foreach ($allnews as $news): ?>
        <tr class="hoverall">
            <td nowrap="nowrap"><?php echo $news->title; ?></td>
            <td nowrap="nowrap"><?php echo $news->meta_title; ?></td>
            <td nowrap="nowrap"><?php echo $news->meta_description; ?></td>
            <td nowrap="nowrap"><?php echo $news->meta_keyword; ?></td>
            <td nowrap="nowrap" width="40%"><?php echo $news->description; ?></td>
            <td>
                <a href="<?php echo base_url() . 'admin/news/edit/' . $news->id; ?>">
                    <img src="<?php echo base_url(); ?>assets/style/img/icons/edit.png" title="Edit"/>
                </a>
                &nbsp;&nbsp;
                <a onclick="return confirm('<?php echo __('are_you_want_delete');?>');" 
                   href="<?php echo base_url() . 'admin/news/delete/'.$news->id; ?>">
                    <img src="<?php echo base_url(); ?>assets/style/img/icons/delete.png" title="Delete"/>
                </a>
            </td>
        </tr>
    <?php endforeach; ?>
    <tr>
        <td colspan="6"><?php echo $pagination; ?></td>
    </tr>
</table>
<?php endif;?>
